<link rel="stylesheet" href="/static/css/app.css" media="all">
<div class="layui-layout layui-layout-admin kit-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">$$$ .default.short_title %%%</div>
        <ul class="layui-nav layui-layout-right kit-nav">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="$$$ .default.icon_data %%%" class="layui-nav-img"> Van
                </a>
                <dl class="layui-nav-child">
                    <dd>
                        <a href="javascript:;"
                            onclick="tab.tabAdd({url:'/admin/setting/basic.html',icon:'&#xe620;',title:'基本资料',id:'nav1'})">基本资料</a>
                    </dd>
                    <dd>
                        <a href="javascript:;"
                            onclick="tab.tabAdd({url:'/admin/setting/security.html',icon:'&#xe620;',title:'安全设置',id:'nav2'})">安全设置</a>
                    </dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/admin/logout"><i class="fa fa-sign-out" aria-hidden="true"></i>注销</a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black kit-side">
        <div class="layui-side-scroll">
            <div style="height: 36px;background: #4A5064;text-align: center;line-height: 35px;"><i class="fa fa-navicon"
                    aria-hidden="true"></i></div>
            <ul class="layui-nav layui-nav-tree" lay-filter="kitNavbar" kit-navbar>
                <li class="layui-nav-item  layui-nav-itemed">
                    <a class="" href="javascript:;"><i class="fa fa-plug" aria-hidden="true"></i><span>
                            基本元素</span></a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="javascript:;" kit-target
                                data-options="{url:'test.html',icon:'&#xe6c6;',title:'表格',id:'1'}">
                                <i class="layui-icon">&#xe6c6;</i><span> 表格</span></a>
                        </dd>
                        <dd>
                            <a href="javascript:;" data-url="form.html" data-icon="fa-user" data-title="表单" kit-target
                                data-id='2'><i class="fa fa-user" aria-hidden="true"></i><span>
                                    表单</span></a>
                        </dd>
                        <dd>
                            <a href="javascript:;" data-url="nav.html" data-icon="&#xe628;" data-title="导航栏" kit-target
                                data-id='3'><i class="layui-icon">&#xe628;</i><span> 导航栏</span></a>
                        </dd>
                        <dd>
                            <a href="javascript:;" data-url="list4.html" data-icon="&#xe614;" data-title="列表四"
                                kit-target data-id='4'><i class="layui-icon">&#xe614;</i><span> 列表四</span></a>
                        </dd>
                        <dd>
                            <a href="javascript:;" kit-target
                                data-options="{url:'https://www.baidu.com',icon:'&#xe658;',title:'百度一下',id:'5'}"><i
                                    class="layui-icon">&#xe658;</i><span> 百度一下</span></a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="fa fa-plug" aria-hidden="true"></i><span> 组件</span></a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" kit-target
                                data-options="{url:'navbar.html',icon:'&#xe658;',title:'Navbar',id:'6'}"><i
                                    class="layui-icon">&#xe658;</i><span> Navbar</span></a></dd>
                        <dd><a href="javascript:;" kit-target
                                data-options="{url:'tab.html',icon:'&#xe658;',title:'TAB',id:'7'}"><i
                                    class="layui-icon">&#xe658;</i><span> Tab</span></a></dd>
                        <dd><a href="javascript:;" kit-target
                                data-options="{url:'onelevel.html',icon:'&#xe658;',title:'OneLevel',id:'50'}"><i
                                    class="layui-icon">&#xe658;</i><span> OneLevel</span></a></dd>
                        <dd><a href="javascript:;" kit-target
                                data-options="{url:'app.html',icon:'&#xe658;',title:'App',id:'8'}"><i
                                    class="layui-icon">&#xe658;</i><span> app.js主入口</span></a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" data-url="/components/table/table.html" data-name="table" kit-loader><i
                            class="fa fa-plug" aria-hidden="true"></i><span> 表格(page)</span></a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" data-url="/views/form.html" data-name="form" kit-loader><i class="fa fa-plug"
                            aria-hidden="true"></i><span> 表单(page)</span></a>
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-body" id="container">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">主体内容加载中,请稍等...</div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        &copy; $$$ .default.copyright %%%
        <div style="float: right;">$$$ .default.icp %%%</div>
    </div>
</div>
<script>
    var message;
    layui.config({
        base: '/static/js/'
    }).use(['app', 'message', 'jquery'], function () {
        var app = layui.app,
            $ = layui.jquery,
            layer = layui.layer;
        //将message设置为全局以便子页面调用
        message = layui.message;
        // 获取菜单，进行渲染
        $.get('api/admin_menu', { uid: "$$$ .User.id %%%" }, function (res) {
            console.log(res)
        })
        //主入口
        app.init();
    });
</script>